package cn.bb.service;

import cn.bb.dao.IPicDao;
import cn.bb.model.Pic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class IPicDaoImpl implements IPicService {
    @Resource
    private IPicDao picDao;
    @Override
    public int addpic(Pic pic) {
        return picDao.addPic(pic);
    }

    public IPicDao getPicDao() {
        return picDao;
    }

    public void setPicDao(IPicDao picDao) {
        this.picDao = picDao;
    }
}
